﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.BuilderPattern
{
    public  class Product2Builder:Builder
    {
        private Product _Product = new Product();
        public override void BuildPartA()
        {
            Console.WriteLine("创建部分X");
        }
        public override void BuildPartB()
        {
            Console.WriteLine("创建部分Y");
        }

        public override void BuildPartC()
        {
            Console.WriteLine("创建部分Z");
        }

        public override Product GetResult()
        {
            return _Product;
        }
    }
}
